package com.bristua.order.biz;

import com.bristua.common.bean.PageBean;
import com.bristua.order.dao.TOrderPayFlowMapper;
import com.bristua.order.model.TOrderPayFlow;
import com.bristua.order.model.condition.TOrderPayFlowExample;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/4/20.
 */
@Service
public class QueryOrderPayFlowBiz {

    @Resource
    private TOrderPayFlowMapper tOrderPayFlowMapper;

    public PageBean queryOrderPayFlow(int pageNo, int pageSize){
        TOrderPayFlowExample tOrderPayFlowExample = new TOrderPayFlowExample();
        Page<TOrderPayFlow> objects = PageHelper.startPage(pageNo,pageSize);
        tOrderPayFlowMapper.selectByExample(tOrderPayFlowExample);
        PageBean data = new PageBean<>(objects);
        return data;
    }
}
